package org.szgb.console.zx.task.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.szgb.console.zx.task.entity.ZxTask;

import java.util.List;

@Mapper
@Repository
public interface ZxTaskMapper {
    ZxTask get(String id);

    List<ZxTask> findList(ZxTask entity);

    Integer getCount(ZxTask entity);

    void insert(ZxTask entity);

    void update(ZxTask entity);

    void delete(String[] ids);

    void insertBatch(List<ZxTask> entityList);

    /**
     *  回滚任务
     * @param id taskId
     */
    void returnTask(String id);
}
